package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_daoImpl_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_daoImpl_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_1_9 = new TagInfo("c:get", //$NON-NLS-1$
            1, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_importsLocation_2_1 = new TagInfo("java:importsLocation", //$NON-NLS-1$
            2, 1,
            new String[] {
                "package", //$NON-NLS-1$
            },
            new String[] {
                "org.example", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_8 = new TagInfo("c:get", //$NON-NLS-1$
            5, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_8 = new TagInfo("c:get", //$NON-NLS-1$
            6, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_8 = new TagInfo("c:get", //$NON-NLS-1$
            10, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_format_13_1 = new TagInfo("java:format", //$NON-NLS-1$
            13, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_java_import_14_2 = new TagInfo("java:import", //$NON-NLS-1$
            14, 2,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_14_72 = new TagInfo("c:get", //$NON-NLS-1$
            14, 72,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_15_2 = new TagInfo("java:import", //$NON-NLS-1$
            15, 2,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_16_14 = new TagInfo("c:get", //$NON-NLS-1$
            16, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_16_95 = new TagInfo("c:get", //$NON-NLS-1$
            16, 95,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_16_158 = new TagInfo("c:get", //$NON-NLS-1$
            16, 158,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_18_3 = new TagInfo("c:include", //$NON-NLS-1$
            18, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/variable.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_19_3 = new TagInfo("c:include", //$NON-NLS-1$
            19, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/constructedFunction.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_20_3 = new TagInfo("c:include", //$NON-NLS-1$
            20, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/entityManager.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_21_3 = new TagInfo("c:include", //$NON-NLS-1$
            21, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/genericity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_22_3 = new TagInfo("c:include", //$NON-NLS-1$
            22, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/findEntityByPrimaryKeyColumns.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_23_3 = new TagInfo("c:include", //$NON-NLS-1$
            23, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/findEntityByAttributeColumns.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_24_3 = new TagInfo("c:include", //$NON-NLS-1$
            24, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/findEntityByPrimaryKey.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_25_3 = new TagInfo("c:include", //$NON-NLS-1$
            25, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/findAllEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_if_26_3 = new TagInfo("c:if", //$NON-NLS-1$
            26, 3,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/@compositeKey='parent'", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_27_4 = new TagInfo("c:include", //$NON-NLS-1$
            27, 4,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/findEntityIdsByParent.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_29_3 = new TagInfo("c:include", //$NON-NLS-1$
            29, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/findEntityByCompositeProperities.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_30_3 = new TagInfo("c:include", //$NON-NLS-1$
            30, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/countEntitysByDetachedCriteria.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_32_3 = new TagInfo("c:include", //$NON-NLS-1$
            32, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/findEntityByPhysicalPrimaryKey.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_33_3 = new TagInfo("c:include", //$NON-NLS-1$
            33, 3,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/dao/implement/canBeMerged.jet", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("package ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_1_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_1_9); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_1_9.setRuntimeParent(null);
        _jettag_c_get_1_9.setTagInfo(_td_c_get_1_9);
        _jettag_c_get_1_9.doStart(context, out);
        _jettag_c_get_1_9.doEnd();
        out.write(".dao;");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_java_importsLocation_2_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "importsLocation", "java:importsLocation", _td_java_importsLocation_2_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_importsLocation_2_1.setRuntimeParent(null);
        _jettag_java_importsLocation_2_1.setTagInfo(_td_java_importsLocation_2_1);
        _jettag_java_importsLocation_2_1.doStart(context, out);
        _jettag_java_importsLocation_2_1.doEnd();
        out.write(NL);         
        out.write("import javax.persistence.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.List;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_5_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_5_8.setRuntimeParent(null);
        _jettag_c_get_5_8.setTagInfo(_td_c_get_5_8);
        _jettag_c_get_5_8.doStart(context, out);
        _jettag_c_get_5_8.doEnd();
        out.write(".domain.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_6_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_6_8.setRuntimeParent(null);
        _jettag_c_get_6_8.setTagInfo(_td_c_get_6_8);
        _jettag_c_get_6_8.doStart(context, out);
        _jettag_c_get_6_8.doEnd();
        out.write(".base.bean.CmiPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.hibernate.Session;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.hibernate.criterion.DetachedCriteria;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.hibernate.criterion.Projections;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_10_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_10_8.setRuntimeParent(null);
        _jettag_c_get_10_8.setTagInfo(_td_c_get_10_8);
        _jettag_c_get_10_8.doStart(context, out);
        _jettag_c_get_10_8.doEnd();
        out.write(".util.CmiDetachedCriteriaUtil; ");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.math.BigDecimal;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Calendar;");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_java_format_13_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_13_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_13_1.setRuntimeParent(null);
        _jettag_java_format_13_1.setTagInfo(_td_java_format_13_1);
        _jettag_java_format_13_1.doStart(context, out);
        JET2Writer _jettag_java_format_13_1_saved_out = out;
        while (_jettag_java_format_13_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            out.write("@");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_14_2 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_14_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_14_2.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_java_import_14_2.setTagInfo(_td_java_import_14_2);
            _jettag_java_import_14_2.doStart(context, out);
            JET2Writer _jettag_java_import_14_2_saved_out = out;
            while (_jettag_java_import_14_2.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("org.springframework.stereotype.Repository");  //$NON-NLS-1$        
                _jettag_java_import_14_2.handleBodyContent(out);
            }
            out = _jettag_java_import_14_2_saved_out;
            _jettag_java_import_14_2.doEnd();
            out.write("(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_14_72 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_14_72); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_14_72.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_get_14_72.setTagInfo(_td_c_get_14_72);
            _jettag_c_get_14_72.doStart(context, out);
            _jettag_c_get_14_72.doEnd();
            out.write("DAO\")");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("@");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_15_2 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_15_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_15_2.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_java_import_15_2.setTagInfo(_td_java_import_15_2);
            _jettag_java_import_15_2.doStart(context, out);
            JET2Writer _jettag_java_import_15_2_saved_out = out;
            while (_jettag_java_import_15_2.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("org.springframework.transaction.annotation.Transactional");  //$NON-NLS-1$        
                _jettag_java_import_15_2.handleBodyContent(out);
            }
            out = _jettag_java_import_15_2_saved_out;
            _jettag_java_import_15_2.doEnd();
            out.write(NL);         
            out.write("public class ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_16_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_16_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_16_14.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_get_16_14.setTagInfo(_td_c_get_16_14);
            _jettag_c_get_16_14.doStart(context, out);
            _jettag_c_get_16_14.doEnd();
            out.write("DAOImpl extends AbstractJpaDao<");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_16_95 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_16_95); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_16_95.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_get_16_95.setTagInfo(_td_c_get_16_95);
            _jettag_c_get_16_95.doStart(context, out);
            _jettag_c_get_16_95.doEnd();
            out.write("> implements ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_16_158 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_16_158); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_16_158.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_get_16_158.setTagInfo(_td_c_get_16_158);
            _jettag_c_get_16_158.doStart(context, out);
            _jettag_c_get_16_158.doEnd();
            out.write("DAO {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_18_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_18_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_18_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_18_3.setTagInfo(_td_c_include_18_3);
            _jettag_c_include_18_3.doStart(context, out);
            _jettag_c_include_18_3.doEnd();
            RuntimeTagElement _jettag_c_include_19_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_19_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_19_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_19_3.setTagInfo(_td_c_include_19_3);
            _jettag_c_include_19_3.doStart(context, out);
            _jettag_c_include_19_3.doEnd();
            RuntimeTagElement _jettag_c_include_20_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_20_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_20_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_20_3.setTagInfo(_td_c_include_20_3);
            _jettag_c_include_20_3.doStart(context, out);
            _jettag_c_include_20_3.doEnd();
            RuntimeTagElement _jettag_c_include_21_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_21_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_21_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_21_3.setTagInfo(_td_c_include_21_3);
            _jettag_c_include_21_3.doStart(context, out);
            _jettag_c_include_21_3.doEnd();
            RuntimeTagElement _jettag_c_include_22_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_22_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_22_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_22_3.setTagInfo(_td_c_include_22_3);
            _jettag_c_include_22_3.doStart(context, out);
            _jettag_c_include_22_3.doEnd();
            RuntimeTagElement _jettag_c_include_23_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_23_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_23_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_23_3.setTagInfo(_td_c_include_23_3);
            _jettag_c_include_23_3.doStart(context, out);
            _jettag_c_include_23_3.doEnd();
            RuntimeTagElement _jettag_c_include_24_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_24_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_24_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_24_3.setTagInfo(_td_c_include_24_3);
            _jettag_c_include_24_3.doStart(context, out);
            _jettag_c_include_24_3.doEnd();
            RuntimeTagElement _jettag_c_include_25_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_25_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_25_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_25_3.setTagInfo(_td_c_include_25_3);
            _jettag_c_include_25_3.doStart(context, out);
            _jettag_c_include_25_3.doEnd();
            RuntimeTagElement _jettag_c_if_26_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "if", "c:if", _td_c_if_26_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_if_26_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_if_26_3.setTagInfo(_td_c_if_26_3);
            _jettag_c_if_26_3.doStart(context, out);
            while (_jettag_c_if_26_3.okToProcessBody()) {
                RuntimeTagElement _jettag_c_include_27_4 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_27_4); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_include_27_4.setRuntimeParent(_jettag_c_if_26_3);
                _jettag_c_include_27_4.setTagInfo(_td_c_include_27_4);
                _jettag_c_include_27_4.doStart(context, out);
                _jettag_c_include_27_4.doEnd();
                _jettag_c_if_26_3.handleBodyContent(out);
            }
            _jettag_c_if_26_3.doEnd();
            RuntimeTagElement _jettag_c_include_29_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_29_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_29_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_29_3.setTagInfo(_td_c_include_29_3);
            _jettag_c_include_29_3.doStart(context, out);
            _jettag_c_include_29_3.doEnd();
            RuntimeTagElement _jettag_c_include_30_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_30_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_30_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_30_3.setTagInfo(_td_c_include_30_3);
            _jettag_c_include_30_3.doStart(context, out);
            _jettag_c_include_30_3.doEnd();
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_32_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_32_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_32_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_32_3.setTagInfo(_td_c_include_32_3);
            _jettag_c_include_32_3.doStart(context, out);
            _jettag_c_include_32_3.doEnd();
            RuntimeTagElement _jettag_c_include_33_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_33_3); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_33_3.setRuntimeParent(_jettag_java_format_13_1);
            _jettag_c_include_33_3.setTagInfo(_td_c_include_33_3);
            _jettag_c_include_33_3.doStart(context, out);
            _jettag_c_include_33_3.doEnd();
            out.write("}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_13_1.handleBodyContent(out);
        }
        out = _jettag_java_format_13_1_saved_out;
        _jettag_java_format_13_1.doEnd();
    }
}
